package com.macro.mall.tiny.modules.foster.model;

import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author zhuyi
 * @since 2024-04-03
 */
@Getter
@Setter
@ApiModel(value = "Appointment对象", description = "")
public class Appointment implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("id")
    private Long id;

    @ApiModelProperty("起始时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;

    @ApiModelProperty("结束时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;

    @ApiModelProperty("房间id")
    private Long roomId;

    @ApiModelProperty("房间名")
    @TableField(exist = false)
    private String roomName;

    @ApiModelProperty("宠物id")
    private Long petId;

    @ApiModelProperty("宠物名")
    @TableField(exist = false)
    private String petName;

    @ApiModelProperty("预约状态(0:待处理，1:已完成，2:回退)")
    @TableField(exist = false)
    private Integer status;
}
